package com.xbongbong.pro.detailtab.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/25 13:57
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class SetDefaultBomVersionDTO extends BaseDTO {

    private static final long serialVersionUID = 9138268346670496547L;
    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.setDefaultBomVersion.dataId.NotNull}")
    private Long dataId;

    /**
     * 0代表取消默认版本， 1代表设置为默认版本
     */
    @NotNull(message = "{dto.msg.setDefaultBomVersion.isDefault.NotNull}")
    private Boolean isDefault;
}
